package com.sharengo.sms.Controller;

import java.util.HashMap;
import java.util.Map;

/**
 * Created by 小泽玛丽罗 on 2017/3/17.
 */
public class BaseController {
    protected Map<String,Object> anwser=new HashMap<>();

    protected void clear(){
        anwser.clear();
    }
    protected void put(String key,Object value){
        anwser.put(key,value);
    }
    protected void remove(String key){
        anwser.remove(key);
    }
    protected Map<String ,Object> getAnwser(){
        return  anwser;
    }
    protected void putSuccess(){
        anwser.put("success",true);
    }
    protected void putFalse(){
        anwser.put("success",false);
    }
    protected void putMessage(String message){anwser.put("message",message);}
}
